package router

import (
	"fmt"
	"github.com/gin-gonic/gin"
	"gocode.com/m/controller"
)

func SetApiRouter(router *gin.Engine) {
	fmt.Println("start setup router")
	apiRouter := router.Group("/api")
	{
		projectGroup := apiRouter.Group("/project")
		{
			projectGroup.GET("/:id", controller.GetProject)
		}
		userGroup := apiRouter.Group("/user")
		{
			userGroup.GET("/:id", controller.GetSysUser)
		}
	}
	fmt.Println("end setup router")
}
